package com.dems.dao.mapper.la;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dems.dao.dataobject.NamesSms;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NamesSmsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NamesSms record);

    int insertSelective(NamesSms record);

    NamesSms selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NamesSms record);

    int updateByPrimaryKey(NamesSms record);

    /**
     *
     * @param page
     * @param keyword
     * @return
     */
    Page<NamesSms> selectPage(@Param("page") Page<NamesSms> page, @Param("namesSms")NamesSms namesSms);

    List<NamesSms> selectByPhoneNo(@Param("phoneNo") String phoneNo);

    List<NamesSms> selectByPhoneNoList(@Param("phoneNoList") List<String> phoneNoList);

    List<NamesSms> selectByLoanIdList(@Param("loanIdList") List<Long> loanIdList);


    NamesSms selectByLoanId(@Param("loanId") Long loanId);
}